#ifndef __IMAGE_H__
#define __IMAGE_H__

#include <stdio.h>
#include <stdlib.h>
#include <QImage>
#include <QColor>
#include "types.h"
#include "error.h"


typedef QRgb Pixel;


class Image {
private:
	QImage _oImage;
public:
	uint getWidth() const;
	uint getHeight() const;
	Image();
  Image(QImage img);
  ~Image();
	float getDistance(int x1, int y1,int x2, int y2) const;
	static float getPixelDistance(Pixel p1, Pixel p2);
	Pixel getPixel(int x, int y) const;
};
#endif
